/*    */ package handling.world;
/*    */ 
/*    */ import java.io.Externalizable;
/*    */ import java.io.IOException;
/*    */ import java.io.ObjectInput;
/*    */ import java.io.ObjectOutput;
/*    */ 
/*    */ public class CharacterIdChannelPair
/*    */   implements Externalizable, Comparable<CharacterIdChannelPair> {
/* 10 */   private int charid = 0;
/* 11 */   private int channel = 1;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public CharacterIdChannelPair(int charid, int channel) {
/* 21 */     this.charid = charid;
/* 22 */     this.channel = channel;
/*    */   }
/*    */   
/*    */   public int getCharacterId() {
/* 26 */     return this.charid;
/*    */   }
/*    */   
/*    */   public int getChannel() {
/* 30 */     return this.channel;
/*    */   }
/*    */ 
/*    */   
/*    */   public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/* 35 */     this.charid = in.readInt();
/* 36 */     this.channel = in.readByte();
/*    */   }
/*    */ 
/*    */   
/*    */   public void writeExternal(ObjectOutput out) throws IOException {
/* 41 */     out.writeInt(this.charid);
/* 42 */     out.writeByte(this.channel);
/*    */   }
/*    */ 
/*    */   
/*    */   public int compareTo(CharacterIdChannelPair o) {
/* 47 */     return this.channel - o.channel;
/*    */   }
/*    */   
/*    */   public CharacterIdChannelPair() {}
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\world\CharacterIdChannelPair.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */